﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="preview.aspx.cs" Inherits="preview" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script language="C#" runat="server">
// Copyright 2010 Google Inc. All Rights Reserved.
private const string GaAccount = "MO-29705972-4";
private const string GaPixel = "/ga.aspx";

private string GoogleAnalyticsGetImageUrl() {
  System.Text.StringBuilder url = new System.Text.StringBuilder();
  url.Append(GaPixel + "?");
  url.Append("utmac=").Append(GaAccount);
  Random RandomClass = new Random();
  url.Append("&utmn=").Append(RandomClass.Next(0x7fffffff));
  string referer = "-";
  if (Request.UrlReferrer != null
      && "" != Request.UrlReferrer.ToString()) {
    referer = Request.UrlReferrer.ToString();
  }
  url.Append("&utmr=").Append(HttpUtility.UrlEncode(referer));
  if (HttpContext.Current.Request.Url != null) {
    url.Append("&utmp=").Append(HttpUtility.UrlEncode(Request.Url.PathAndQuery));
  }
  url.Append("&guid=ON");
  return url.ToString().Replace("&", "&amp;");
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="viewport" content="width=device-width">
    <title>预定信息 | 大众进口汽车甲壳虫</title>
    <script type="text/javascript">
        addEventListener("load", function () { setTimeout(hideURLbar, 0); }, false);
        function hideURLbar() {
            window.scrollTo(0, 1);
        }
    </script>
    <style type="text/css">
       * {font-family:Lucida Sans Unicode,helvetica,sans-serif;font-size:12px;margin:0;padding:0;}
        body {background-color:#efefef;}
		A:link {  color:#045783;font-size:30px;font-weight:bold; text-decoration: none }
		A:visited {	color:#045783;font-size:30px;font-weight:bold; text-decoration: none }
		A:hover {  color:#045783;font-size:30px;font-weight:bold;text-decoration: none }
        #container {width:640px;height:834px;margin:0 auto;position:relative;}
        #bg_image,#buttons {width:640px;height:834px;position:absolute;}
		#car { top:509px; left: 40px; position:absolute; }
        .button_info {width:215px;height:60px;display:block;position:absolute;}
        #button_edit {left:89px;top:738px;}
        #button_submit {left:319px;top:738px;}
        .preview_info {color:#045783;font-size:30px;font-weight:bold;position:absolute;left:250px;}
        #info_name {top:210px;}
        #info_number {top:258px;}
        #info_email {top:310px;}
        #info_budget {top:359px;}
        #info_date {top:409px;}
        #info_model {top:459px;}
        #info_color {top:509px;}
        #info_seat {top:557px;}

    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="container">
        <div id="bg_image">
            <img src="images/header.jpg" width="640" height="84" alt="大众进口汽车甲壳虫" />
            <img src="images/05_02.jpg" width="640" height="94" alt="预订信息" />
            <img src="images/05_03.jpg" width="640" height="176" alt="信息预览" />
            <img src="images/05_04.jpg" width="640" height="161" alt="信息预览" />
            <img src="images/05_05.jpg" width="640" height="155" alt="" />
            <img src="images/05_06.jpg" width="640" height="164" alt="确认" />
        </div>
        <div id="buttons">
            <div id="info_name" class="preview_info"><%=name %><%=sex %></div>
            <div id="info_number" class="preview_info"><%=mobile %></div>
            <div id="info_email" class="preview_info"><%=email %></div>
            <div id="info_budget" class="preview_info"><%=budgetFrom %>-<%=budgetTO %></div>
            <div id="info_date" class="preview_info"><%=year %><%=month %>月</div>
            <div id="info_model" class="preview_info"><%=capcity %> <%=model %></div>
            <div id="info_color" class="preview_info"><%=converColor(color)%></div>
            <div id="info_seat" class="preview_info"><%=converSeat(seat)%></div>
            <asp:LinkButton ID="button_edit" class="button_info" runat="server" 
                onclick="button_edit_Click"></asp:LinkButton>
            <asp:LinkButton ID="button_submit" class="button_info" runat="server" 
                onclick="button_submit_Click"></asp:LinkButton>
        </div>
        <div id="car">
        <%--<img src="images/01.png" width="200" height="105" />--%>
		<img src="images/<%=color%>_preview.png" width="200" height="105" />
		</div>
    </div>
    </form>
    <% string googleAnalyticsImageUrl = GoogleAnalyticsGetImageUrl(); %>
<img src="<%= googleAnalyticsImageUrl %>" />
</body>
</html>
